extends CanvasLayer

@onready var center_joy: Marker2D = $CenterJoy
@onready var key_center: Marker2D = $KeyCenter

var save_name = "operate"

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta: float) -> void:
	pass

func get_save_name()->String:
	return save_name

func save_data():
	var dict = {
		"node" : "operate",
		"move_position_x": center_joy.position.x,
		"move_position_y": center_joy.position.y,
	}
	return dict
	

func load_data(data):
	center_joy.position.x = data.get("move_position_x",440)
	center_joy.position.y = data.get("move_position_y",768)
